package com.atguigu.gmall.list.servcie;

import com.atguigu.gmall.model.list.SearchParam;
import com.atguigu.gmall.model.list.SearchResponseVo;

import java.io.IOException;

public interface SearchService {

    /**
     * 商品上传到es中
     * @param skuId
     */
    public void uploadEs(Long skuId);




    /**
     * 商品从es中删除
     * @param skuId
     */
    public void deleteEs(Long skuId);


    /**
     * 更新es中的hostscore热度排名
     * @param skuId
     */
    public void updateEs(Long skuId);

    /**
     * 查询商品详情
     * @param searchParam
     * @return
     */
    public SearchResponseVo search(SearchParam searchParam) throws IOException;


}
